package com.ruoyi.rsikManage.service;

import com.ruoyi.rsikManage.domain.AlarmEvent;
import com.ruoyi.rsikManage.domain.AlarmEventRequest;
import com.ruoyi.rsikManage.domain.vo.AlarmsVo;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author wxx
 * @description
 * @date 2023/9/7 16:48

 */
public interface StatisticalAnalysisService {


    List<AlarmEvent> selectAlarmAlgoName();

    List<AlarmEvent> selectAlarmAlgoNameGroup(AlarmEventRequest alarmEventRequest);

    List<AlarmEvent> selectAlarmOrgName();

    List<AlarmEvent> selectAlarmApeName(AlarmEventRequest alarmEventRequest);

    List<AlarmEvent> selectAllAlarmInfo(AlarmEventRequest alarmEventRequest);

    List<AlarmEvent> selectAlarmById(AlarmEventRequest alarmEventRequest);

   int  updateAlarmInfo(AlarmEvent alarmEvent);

    int  batchUpdateAlarmInfo(List<AlarmEvent> alarmEvents);

    Map<String,Object> selectAlarmIndex(AlarmEventRequest alarmEventRequest);

    Map<String,Object> selectAlarmIndexForUnitCodes(AlarmEventRequest alarmEventRequest);


    Map<String,Object> selectAlarmIndexDemo(AlarmEventRequest alarmEventRequest);

    List<String> mtlist(String apeName);

    Map<String,Object> selectDisplayIndex(AlarmEventRequest alarmEventRequest);

    int InboundDataOftAlarm(Map map);

    int InboundDataOftAlarmForUnitCodes(Map map);
    //报警记录叠加
    int InboundDataOftAlarmForUnitCodesByOverlay(Map<String, Object> map);



    int InboundDataOftAlarmV2(Map map);


    List<AlarmEvent> selectAllAlarmInfoV2(AlarmEventRequest alarmEventRequest);

    List<AlarmsVo> selectAlarms(AlarmEventRequest alarmEventRequest);

    List<AlarmEvent> selectAllAlarmInfoEF(AlarmEventRequest alarmEventRequest);


    String uploadFile(MultipartFile file, String type);




    }
